
import {ParamsData,Staff} from './type'
import {get,post} from '../../utils/request' 

//获取类型列表
export const getList=(params:ParamsData)=>get("staff/list",params)
//批量删除
export const deleteAll=(ids:number[])=>post("staff/deleteall",{ids})
//单条删除
export const del=(id:number)=>get("staff/delete",{id})
//添加
export const add=(data:Staff)=> post("staff/add",data)
//获取类型类型
export const TypeList=():Promise<any> => get("stafftype/list",{psize:100})
